﻿@using Microsoft.AspNetCore.Mvc.Localization
@using MicroService.ApiGatewayAdmin.Domain.Localization.ApiGateway;
@inject IHtmlLocalizer<ApiGatewayResource> Localizer

<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label ocelot-line">@Localizer["RouteName"]</label>
        <div class="layui-input-inline ocelot-line-input">
            <input type="text" autocomplete="off" lay-verify="required" id="ReRouteName" name="ReRouteName" class="layui-input">
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label ocelot-line">@Localizer["ServiceName"]</label>
        <div class="layui-input-inline  ocelot-line-input">
            <input type="text" autocomplete="off" id="ServiceName" name="ServiceName" class="layui-input">
        </div>
    </div>
</div>

<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label ocelot-line">@Localizer["UpstreamPathTemplate"]</label>
        <div class="layui-input-inline  ocelot-line-input">
            <input type="text" autocomplete="off" lay-verify="required" id="UpstreamPathTemplate" name="UpstreamPathTemplate" class="layui-input">
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label ocelot-line">@Localizer["DownstreamPathTemplate"]</label>
        <div class="layui-input-inline  ocelot-line-input">
            <input type="text" autocomplete="off" lay-verify="required" id="DownstreamPathTemplate" name="DownstreamPathTemplate" class="layui-input">
        </div>
    </div>
</div>

<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label ocelot-line">@Localizer["DownstreamScheme"]</label>
        <div class="layui-input-inline ocelot-line-input">
            <input type="text" name="DownstreamScheme" id="DownstreamScheme" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label ocelot-line">@Localizer["RequestIdKey"]</label>
        <div class="layui-input-inline  ocelot-line-input">
            <input type="text" name="RequestIdKey" id="RequestIdKey" autocomplete="off" class="layui-input">
        </div>
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label ocelot-line">@Localizer["UpstreamHttpMethod"]</label>
    <div class="layui-input-block ocelot-block">
        <input name="UpstreamHttpMethod" id="UpstreamHttpMethod" tgclass="ocelot-line-input" class="tags-input"
               placeholder="@Localizer["Format"] @Localizer["Optional"]:POST;GET;PATCH;PUT" />
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label ocelot-line">@Localizer["DownstreamHostAndPorts"]</label>
    <div class="layui-input-block ocelot-block">
        <input name="DownstreamHostAndPorts" id="DownstreamHostAndPorts" tgclass="ocelot-line-input" class="tags-input"
               lay-verify="required" placeholder="@Localizer["Format"] localhost:8080">
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label ocelot-line">@Localizer["TimeoutValue"]</label>
    <div class="layui-input-block ocelot-block">
        <input type="text" name="ReRouteTimeOut" class="layui-input" autocomplete="off"
               id="ReRouteTimeOut" placeholder="@Localizer["Sample"] 1000">
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label ocelot-line">@Localizer["RouteClaimsRequirement"]</label>
    <div class="layui-input-block ocelot-block">
        <input name="RouteClaimsRequirement" id="RouteClaimsRequirement" tgclass="ocelot-line-input" class="tags-input"
               placeholder="@Localizer["Format"] RoleId:10">
    </div>
</div>

<div class="layui-form-item">
    <div class="layui-inline">
        <label class="layui-form-label ocelot-line">@Localizer["AggregateKey"]</label>
        <div class="layui-input-inline ocelot-line-input">
            <input type="text" autocomplete="off" id="AggregateKey" name="AggregateKey" class="layui-input">
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label ocelot-line">@Localizer["Priority"]</label>
        <div class="layui-input-inline  ocelot-line-input">
            <input type="text" autocomplete="off" id="Priority" name="Priority" class="layui-input">
        </div>
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label ocelot-line">@Localizer["OtherOptions"]</label>
    <div class="layui-input-block">
        <input type="checkbox" name="CertificateValidator" title="@Localizer["CertificateValidator"]">
        <input type="checkbox" name="CaseSensitive" title="@Localizer["CaseSensitive"]">
    </div>
</div>